sync.RWMutex.readerCount (field)
9 uses
sync (current package)
rwmutex.go#L40: readerCount atomic.Int32 // number of pending readers
rwmutex.go#L69: if rw.readerCount.Add(1) < 0 {
rwmutex.go#L90: c := rw.readerCount.Load()
rwmutex.go#L97: if rw.readerCount.CompareAndSwap(c, c+1) {
rwmutex.go#L117: if r := rw.readerCount.Add(-1); r < 0 {
rwmutex.go#L149: r := rw.readerCount.Add(-rwmutexMaxReaders) + rwmutexMaxReaders
rwmutex.go#L177: if !rw.readerCount.CompareAndSwap(0, -rwmutexMaxReaders) {
rwmutex.go#L206: r := rw.readerCount.Add(rwmutexMaxReaders)
rwmutex.go#L231: r := rw.readerCount.Load()
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |